from base.base import Base


class AuthorizeBase(Base):
    # 温馨提示页的确认按钮
    def privacy_agree_button(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/tv_sure"]'

    # 授权页的确认按钮
    def authorize_agree_button(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/tv_sure"]'

    # 新人广告页的关闭按钮
    def ad_close_button(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/dialog_cancel_tv"]'
